/*
 * @Description:
 * @Version: 2.0
 * @Autor: snzo.chen
 * @Date: 2023-11-17 11:19:31
 * @LastEditors: snzo.chen
 * @LastEditTime: 2023-12-20 15:38:32
 */
import { request } from '@/utils/request';

/**
 * @description 登录
 * @param {LoginParams} data
 * @returns
 */
export function login(query: API.LoginParams) {
  return request<API.BaseResult>(
    {
      url: '/user/login',
      method: 'post',
      params: query,
    },
    {
      isGetDataDirectly: false,
    },
  );
}
